from tkinter import *

a1=int(input())
a2=int(input())
a3=int(input())

coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 20, 10, 20, 10, 30, 0, 30]#16

if a3 == 0 and a1>=0 and a1<=500 and a2>=0 and a2<=500:
    pass
else:
    if a3>0 and 0*a3+a1>=0 and 0*a3+a2>=0 and 20*a3+a1<=500 and 20*a3+a2<=500:
        pass
    else:
        if a3<0 and 20*a3+a1>=0 and 0*a3+a1<=500 and 0*a3+a2<=500:
            pass
        else:
            print('the shape size exceeds the max field size.')
            exit()


root = Tk ()
root.title('IT marathon')
root.geometry('500x500')

canvas = Canvas(bg='white', width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)

canvas.create_polygon(coords[0] *a3+a1, coords[1] *a3+a2,
                      coords[2] *a3+a1, coords[3] *a3+a2,
                      coords[4] *a3+a1, coords[5] *a3+a2,
                      coords[6] *a3+a1, coords[7] *a3+a2,
                      coords[8] *a3+a1, coords[9] *a3+a2,
                      coords[10] *a3+a1, coords[11] *a3+a2,
                      coords[12] *a3+a1, coords[13] *a3+a2,
                      coords[14] *a3+a1, coords[15] *a3+a2)

root.mainloop ()
